package com.ws.demo1.demos.domain;

public class Pen {

    public final Fractal start;
    public final Fractal end;

    public Pen(Fractal start, Fractal end) {
        this.start = start;
        this.end = end;
    }

    public double high() { return Math.max(start.price, end.price); }
    public double low() { return Math.min(start.price, end.price); }
    public boolean isUp() { return end.price > start.price; }

}
